{template pifaleft}
<script charset="utf-8" src="{SITE_URL}js/editor/kindeditor.js"></script>
<script type="text/javascript">

function show_share(a){
	    if(a==1){
	        document.getElementById("share").style.display='none';
	    }else{
	        document.getElementById("share").style.display='block';
	    }
    }
	function show_share1(a){
	    if(a==1){
	        document.getElementById("share1").style.display='none';
	    }else{
	        document.getElementById("share1").style.display='block';
	    }
	}
function sch_tc2(i){
  	if (i==1){
  		document.getElementById('sch2').style.display = 'block';
      	document.getElementById('sch1').style.display = 'none';
  		document.getElementById('daily2').style.display = 'block';
      	document.getElementById('daily1').style.display = 'none';
      	show_share1(1);
  	}else{
 		document.getElementById('sch1').style.display = 'block';
      	document.getElementById('sch2').style.display = 'none';
 		document.getElementById('daily1').style.display = 'block';
      	document.getElementById('daily2').style.display = 'none';
      	show_share(1);
  	}
}
</script>
<div class="step">
	<ul>
    	<li class="step2"><a href="index.php?line/pifalineedit/$lid">1. 基本资料</a></li>
        <li class="step4"><a href="index.php?line/pifalineprice/$lid">2. 行程报价</a></li>
        <li class="step1"><a href="index.php?line/pifaeditday/$lid"><span style=" color:#FFF">3. 具体行程</span></a></li>
        <li class="step3"><a href="index.php?line/pifaeditdesc/$lid">4. 相关指南</a></li>
        <li><img src="css/user/rse.gif" width="87" height="25" /></li>
    </ul>
</div>
<div class="rightmenu">

<form action="index.php?line/pifaeditday" method="post" name="modiform" id="modiform">
<dl>
<dt><b>行程安排：</b><em>*</em></dt>
<dd><div class="new"></div>
<label title="推荐使用此模式发布行程，欣欣即将推出多种模版美化行程"><input type="radio" name="sch_tc" value="1" onclick="sch_tc2(1);" {if (int)$ds['type']==1}checked{/if} />按天编辑模式</label> 
<label><input type="radio" name="sch_tc" value="0" onclick="sch_tc2(0);" {if (int)$ds['type']==0}checked{/if} />可视化编辑模式</label>

</dd>
</dl>

<div id="daily1" class="editer" style="display:{if (int)$ds['type']==0}block{else}none{/if}">
<h5 style="display:block">请填写具体行程安排，不要填写费用说明、联系方式及非行程相关的信息</h5>

</div>	



<div id="daily2" class="editer" style="display:{if (int)$ds['type']==1}block{else}none{/if}">
<h5 style="display:block">推荐使用按天编辑</h5>
</div>



<table id="sch1" class="travel_day" style="display:{if (int)$ds['type']==0}block{else}none{/if}">
    <tr>
      <td align="center">
      <textarea id="mycontent" style="height:400px;width:760px;" name="content">{$ds['content']}</textarea>
   	  </td>
    </tr>
</table>

<span id="sch2" class="travel_day" style="display:{if (int)$ds['type']==1}block{else}none{/if}">

<div id="xingcheng-box">
	<input type="hidden" name="att[xingcheng_format]" value="0" />
    <div class="fieldset xingcheng-by-day">
		{$dstr}
	</div>
	<!--div class="add_day"><a href="#?" onclick="xingcheng_add_day();return false;">+ 添加第<b id="xingcheng-next-day-no">2</b>天行程</a></div-->
	<span id="sch_day"></span>	
</div>
<input type="hidden" id="xing_day" name="xing_day" value="1" />
</span>
<dl><dt>跳转：<em>&nbsp;</em></dt><dd><input type="radio" value="1" name="tz">继续编辑&nbsp;<input type="radio" value="2" name="tz" checked>编辑指南</dd></dl>
<div class="button"><input type="submit" value="确认修改" class="sub"></div>
<div class="clear"></div>

</div>

</div>
<input type="hidden" value="{$lid}" name="lid">
</form>

		


<script type="text/javascript">
	KE.init({
		id : 'mycontent',
		resizeMode : 1,
		allowUpload : true,
		newlineTag : 'br',
		imageUploadJson : '{$setting['site_url']}index.php?attach/upload',
		items : [
		'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
		'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
		'insertunorderedlist', '|', 'image', 'link']
	});
	KE.create('mycontent');
</script>


</div>
{template footer}